/*
 * All rights Reserved, Designed By DataDriver
 * Copyright:    DataDriver.Inc
 * Company:      Zhuo Wo Infomation Technology (ShangHai) CO.LTD
 */
package com.sun.controller;

import com.sun.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import javax.annotation.Resource;
import javax.inject.Inject;

/**
 * 自动装配
 */
@Controller
public class UserController {


    //DI依赖注入的  Spring
    @Autowired
    private UserService userService;

    @Resource  //J2EE
    private UserService userService2;

    @Inject //J2EE
    private UserService userService3;
}
